Release 10.1A: OpenEdge Data Management:
SQL Reference


BEGIN-END DECLARE SECTION

Declares variables and types used by the precompiler. Any variables you refer to in an embedded SQL statement must be declared in a DECLARE SECTION. This section starts with a BEGIN DECLARE SECTION statement and ends with an END DECLARE SECTION statement. Each variable must be declared as a host language data type.

Syntax

EXEC SQL BEGIN DECLARE SECTION 
host_lang_type  variable_name ; 
  . 
  . 
  . 
EXEC SQL END DECLARE SECTION 

host_lang_type variable_name ;

A conventional C language variable declaration. This form of variable declaration conforms to the ANSI standard for the C language.

Syntax
{  char  |  short  |  long  |  float  |  double  } 

Example

EXEC SQL BEGIN DECLARE SECTION ; 
      short InvTransNum_v ; 
      short Qty_v ; 
      short OrderNum_v ; 
EXEC SQL END DECLARE SECTION ; 

Notes

Authorization

None

Related statements

Static Array Types


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095